@extends('adminlte::page')

@section('title', '子页面配置')

@section('content_header')

@stop

@section('content')
    <div class="box">
        <div class="box-header">
            <h3 class="box-title">子页面内容管理</h3>

            {{--<div class="box-tools">--}}
                {{--<div class="input-group input-group-sm" style="width: 150px;">--}}
                    {{--<input type="text" name="table_search" class="form-control pull-right" placeholder="Search">--}}

                    {{--<div class="input-group-btn">--}}
                        {{--<button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>--}}
                    {{--</div>--}}
                {{--</div>--}}
            {{--</div>--}}
        </div>
        <!-- /.box-header -->
        <div class="box-body table-responsive no-padding">
            <table class="table table-hover">
                <tbody><tr>
                    <th>ID</th>
                    <th>子页面名称</th>
                    {{--<th>内容</th>--}}
                    <th>操作</th>
                </tr>

                @foreach($channels as $channel)
                <tr>
                    <td>{{ $loop->iteration }}</td>
                    <td>{{ $channel->name }}</td>
                    {{--<td>11-7-2014</td>--}}
                    <td>

                        <a href="{{ route('subpage.edit' ,['news'=>$channel->id]) }}">
                            <span class="label label-success">编辑内容</span>
                        </a>
                    </td>
                </tr>
                    @endforeach
                </tbody></table>
        </div>
        <!-- /.box-body -->
    </div>
@stop